<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="com.roadmap.common.RdcResourceBundle" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="res/css/layout.css" rel="stylesheet" type="text/css" media="all" />
<link href="res/css/auth.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="res/js/auth.js"></script>
<script type="text/javascript" src="res/js/util.js"></script>
<script type="text/javascript" src="res/js/func.js"></script>
<script type="text/javascript" src="dwr/engine.js"> </script>
<script type="text/javascript" src="dwr/util.js"> </script>
<script type="text/javascript" src="dwr/interface/UtilHandler.js"></script>
<title>登陆 | <%=RdcResourceBundle.COMPANY_NAME %></title>
</head>

<body onload="initLogon();">
	<jsp:include page="/res/jsp/header.jsp"></jsp:include>
	
	<!-- define the frame for logging on-->
	<div class="mainbody"><div class="logon-height"><div class="logonbody">	
		<div class="logon-div"><div class="login-form">
			<div class="title-div">登陆</div>
			<!-- define a form for logging in -->
			<html:form action="/logon" onsubmit="return checkLogonInputs();">
				<bean:cookie id="mailCookie" name="cookMail" value=""/>		
				<bean:cookie id="pwrdCookie" name="cookPwrd" value=""/>
				<bean:cookie id="rembCookie" name="cookRemb" value=""/>
				
				<div class="frame">	
					<div id="logonMessage" class="error-message" ><html:errors /></div>										
					<table class="login-table">
					<tr>
						<td class="left-column">邮箱:</td>
						<td class="right-column"><html:text property="logonMail" styleClass="input-text" value="<%=mailCookie.getValue()%>" tabindex="1"/>
					</tr>
					<tr>
						<td class="left-column">密码:</td>
						<td class="right-column"><html:password property="password" styleClass="input-text" maxlength="16" tabindex="2"/>			
					</tr>
					<tr>
						<td class="left-column"></td>
						<td class="right-column">
							<span><html:checkbox property="rememberMe" style="float: left;" value="<%=rembCookie.getValue()%>" tabindex="3" onclick="rememberUser();"/></span>
							<span style="float: left; margin-top:3px;">记住我</span>							
						</td>
					</tr>
					<tr>
						<td class="left-column"></td>
						<td class="right-column"><a class="right-side" href="auth/getpwd.jsp" target="_self">找回密码</a>
						<html:submit property="logonbtn" styleClass="submit-logon" value="登陆" tabindex="3"/></td>
					</tr>
					</table>
				</div>
			</html:form>
		</div></div>		
	</div></div>
	<div class="clear-div"></div>
	</div>
	
	<jsp:include page="/res/jsp/footer.jsp"></jsp:include>

</body>
</html>
